package it.polimi.travelDream.entities;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;



@Entity
@Table(name="HOTEL", uniqueConstraints= {
		@UniqueConstraint(columnNames = "name, address, city")
		})
public class Hotel implements Serializable{
	private static final long serialVersionUID = 1L;
	
	/**
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	int IDHotel;
	String name;
	String address;
	String city;
	String availability;
	String typeRum;
	float costPerDay;
	
	public Hotel(){}
	
	public Hotel(int iDHotel, String name, String address, String city,
			String availability, String typeRum, float costPerDay) {
		super();
		IDHotel = iDHotel;
		this.name = name;
		this.address = address;
		this.city = city;
		this.availability = availability;
		this.typeRum = typeRum;
		this.costPerDay = costPerDay;
	}
	
	public int getId() {
		return IDHotel;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getAvailability() {
		return availability;
	}
	public void setAvailability(String availability) {
		this.availability = availability;
	}
	public String getRumType() {
		return typeRum;
	}
	public void setRumType(String rumType) {
		this.typeRum = rumType;
	}
	public float getCostPerDay() {
		return costPerDay;
	}
	public void setCostPerDay(float costPerDay) {
		this.costPerDay = costPerDay;
	}
	
	
	
	
}
